import { baseRequest } from "@/api/http.js"




export const testGame = (skey,game_id) => {
    return baseRequest("/wxapp/xcx/gameTest.html", {skey:skey,id:game_id})
}

//index
export const index = (net,scene,deviceInfo,platform) => {
    return baseRequest("/wxapp/xcx/indexAotemanV2.html", {net:net,scene:scene,deviceInfo:deviceInfo,platform:platform})
}



export const getAoteman = (page) => {
    return baseRequest("/wxapp/aoteman/getAoteman.html", {page:page})
}


export const getAotemanDetail = (id) => {
    return baseRequest("/wxapp/aoteman/getAotemanDetail.html", {id:id})
}


//user
export const doLogin = (code) => {
    return baseRequest("/wxapp/user/login2.html", {code:code})
}

export const edit = (param) => {
    return baseRequest("/wxapp/user/edit.html", param)
}

export const logout = () => {
    return baseRequest("/wxapp/user/logout.html")
}

export const bindPhone = (param) => {
    return baseRequest("/wxapp/user/bindPhone.html", param)
}

//collect
export const getCollectList = (page) => {
    return baseRequest("/wxapp/collect/getCollectList.html", {page:page})
}

export const collect = (id,type) => {
    return baseRequest("/wxapp/collect/collect.html", {id:id,type:type})
}


//like
export const getLikeList = (page) => {
    return baseRequest("/wxapp/like/getLikeList.html", {page:page})
}

export const like = (id,type) => {
    return baseRequest("/wxapp/like/like.html", {id:id,type:type})
}

//interaction
export const getInteractionList = (page) => {
    return baseRequest("/wxapp/interaction/getInteractionList.html", {page:page})
}

//给评论点赞或取消点赞
export const addLikeForComment = (param) => {
    return baseRequest("/wxapp/like/like2.html", param)
}


//卡牌
export const getKapaiList = (type) => {
    return baseRequest("/wxapp/Kapai/getKapaiAotemanList.html", {type:type})
}
export const getKapaiDetail = (id) => {
    return baseRequest("/wxapp/Kapai/getKapaiAotemanDetail.html", {id:id})
}

export const chouKa = (type) => {
    return baseRequest("/wxapp/Kapai/chouKaAoteman.html",{type:type})
}

//ukapai
export const choukaInit = () => {
    return baseRequest("/wxapp/Ukapai/choukaAotemanInit.html")
}

export const getRank = () => {
    return baseRequest("/wxapp/Ukapai/getRank.html")
}

export const getRank2 = () => {
    return baseRequest("/wxapp/Ukapai/getRank2.html")
}

export const getUkapaiList = (type) => {
    return baseRequest("/wxapp/Ukapai/getUkapaiAotemanList.html",{type:type})
}

export const getUkList = (page) => {
    return baseRequest("/wxapp/Ukapai/getUkList.html",{page:page})
}

export const getUkRecordList = (page) => {
    return baseRequest("/wxapp/Ukapai/getUkRecordList.html",{page:page})
}

export const duihuan = (id) => {
    return baseRequest("/wxapp/Ukapai/duihuan.html",{id:id})
}

//弹幕
export const saveDanmu = (param) => {
    return baseRequest("/wxapp/KapaiDanmu/saveDanmu.html", param)
}

//power
export const signInit = () => {
    return baseRequest("/wxapp/power/signInit.html")
}
export const sign = () => {
    return baseRequest("/wxapp/power/sign.html")
}

export const getSignList = (page) => {
    return baseRequest("/wxapp/power/getSignList.html",{page:page})
}

//movie
export const getJujiList = (page) => {
    return baseRequest("/wxapp/movie/getJujiList.html", {page:page})
}

export const getJuchangList = (page) => {
    return baseRequest("/wxapp/movie/getJuchangList.html", {page:page})
}

export const getJujiDetail = (id) => {
    return baseRequest("/wxapp/movie/getJujiDetail.html", {id:id})
}

//music
export const getMusicList = (page) => {
    return baseRequest("/wxapp/music/getMusicList.html", {page:page})
}

//news
export const getBaoluList = (page) => {
    return baseRequest("/wxapp/article/getBaoluList.html", {page:page})
}

export const getNewsDetail = (id) => {
    return baseRequest("/wxapp/article/getDetail.html", {id:id})
}

//comment
//评论 comment
export const addComment = (param) => {
    return baseRequest("/wxapp/comment/addComment.html", param)
}



//删除评论
export const delComment = (comment_id) => {
    return baseRequest("/wxapp/comment/delComment.html", {comment_id:comment_id})
}

//获取更多评论
export const getMoreComment = (param) => {
    return baseRequest("/wxapp/comment/getMoreCommentByAoteman.html", param)
}
//comment

//discusion

export const getDiscussionList = (page) => {
    return baseRequest("/wxapp/discussion/getDiscussionList.html", {page:page})
}

export const getDiscussionDetail = (id) => {
    return baseRequest("/wxapp/discussion/getDiscussionDetail.html", {id:id})
}


//share

export const shareCard = (id,code) => {
    return baseRequest("/wxapp/share/shareCard.html",{id:id,code:code})
}

export const askCard = (id,code) => {
    return baseRequest("/wxapp/share/askCard.html",{id:id,code:code})
}

export const saveShare = (param) => {
    return baseRequest("/wxapp/share/saveShare.html",param)
}

export const saveZhuli = (param) => {
    return baseRequest("/wxapp/share/saveZhuli.html",param)
}

export const getZhuliStatus = (id) => {
    return baseRequest("/wxapp/share/getZhuliStatus.html",{id:id})
}

export const shareZhuli = (id,code) => {
    return baseRequest("/wxapp/share/shareZhuli.html",{id:id,code:code})
}

export const finishZhuli = (id) => {
    return baseRequest("/wxapp/share/finishZhuli.html",{id:id})
}

export const getHotSearch = () => {
    return baseRequest("/wxapp/aoteman/getHotSearch.html")
}

//图片
export const getZTheme = (id,page) => {
    return baseRequest("/wxapp/bizhi/getZTheme.html",{id:id,page:page})
}

export const getZThemeList = (page) => {
    return baseRequest("/wxapp/bizhi/getZThemeList.html",{page:page})
}

export const getGongzhongList = (page) => {
    return baseRequest("/wxapp/bizhi/getGongzhongList.html",{page:page})
}

//庄园
export const zyindex = (invitation_code) => {
    return baseRequest("/wxapp/zhuangyuan/index.html", {invitation_code:invitation_code})
}

export const zyGetRankList = (type) => {
    return baseRequest("/wxapp/zhuangyuan/zyGetRankList.html", {type:type})
}

export const attack = (be_attack_user_id) => {
    return baseRequest("/wxapp/zhuangyuan/attack.html", {be_attack_user_id:be_attack_user_id})
}

export const addJn = (gongji,fangyu) => {
    return baseRequest("/wxapp/zhuangyuan/addJn.html", {gongji:gongji,fangyu:fangyu})
}

export const zyVisitindex = (visituser_skeyid) => {
    return baseRequest("/wxapp/zhuangyuan/zyVisitindex.html", {visituser_skeyid:visituser_skeyid})
}

export const zyfollow = (followed_id) => {
    return baseRequest("/wxapp/zhuangyuan/zyfollow.html", {followed_id:followed_id})
}

export const xyFollowList = (page) => {
    return baseRequest("/wxapp/zhuangyuan/xyFollowList.html",{page:page})
}

export const randompk = (user_id,pk_count) => {
    return baseRequest("/wxapp/zhuangyuan/randompk.html",{user_id:user_id,pk_count:pk_count})
}

export const tedingpk = (be_attack_user_id) => {
    return baseRequest("/wxapp/zhuangyuan/tedingpk.html",{be_attack_user_id:be_attack_user_id})
}

export const zyPkMgs = (msg,msg_id,to_user_id) => {
    return baseRequest("/wxapp/zhuangyuan/zyPkMgs.html",{msg:msg,msg_id:msg_id,to_user_id:to_user_id})
}

export const zyMsgList = (page) => {
    return baseRequest("/wxapp/zhuangyuan/zyMsgList.html",{page:page})
}

export const nengliangshiUse = (count) => {
    return baseRequest("/wxapp/zhuangyuan/nengliangshiUse.html",{count:count})
}

export const zhanzhan = (egg_id,user_id) => {
    return baseRequest("/wxapp/zhuangyuan/zhanzhan.html",{egg_id:egg_id,user_id:user_id})
}

export const getNengliangshiByguaishou = () => {
    return baseRequest("/wxapp/zhuangyuan/getNengliangshiByguaishou.html")
}

export const niudaninit = () => {
    return baseRequest("/wxapp/zhuangyuan/niudaninit.html")
}

export const zyChoujiang = () => {
    return baseRequest("/wxapp/zhuangyuan/zyChoujiang.html")
}

export const getEggList = () => {
    return baseRequest("/wxapp/zhuangyuan/getEggList.html")
}

export const getNengliangshiList = () => {
    return baseRequest("/wxapp/zhuangyuan/getNengliangshiList.html")
}

export const getChoujiangList = () => {
    return baseRequest("/wxapp/zhuangyuan/getChoujiangList.html")
}

export const getRecommendXcx = () => {
    return baseRequest("/wxapp/tool/getRecommendXcx.html")
}

